﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Thefaceless
{

    class Drinks
    {
        private string MaDU, TenDU;
        private int SoLuong;
        private double GiaTien;

        public Drinks(string MaDU, string TenDU, int soluong, double giatien)
        {
            this.MaDU = MaDU;
            this.TenDU = TenDU;
            this.SoLuong = soluong;
            this.GiaTien = giatien;
        }
        public Drinks(DataRow row)
        {
            this.MaDU = (string)row["MaDoUong"];
            this.TenDU = (string)row["TenDoUong"];
            this.SoLuong = (int)row["SoLuong"];
            this.GiaTien = (double)row["GiaTien"];
        }
        public void setMaDU(string madu)
        {
            this.MaDU = madu;
        }
        public void setTenDU(string tendu)
        {
            this.TenDU = tendu;
        }
        public void setSoLuong(int soluong)
        {
            this.SoLuong = soluong;
        }
        public void setGiaTien(double giatien)
        {
            this.GiaTien = giatien;
        }
        public string getMaDU()
        {
            return this.MaDU;
        }
        public string getTenDU()
        {
            return this.TenDU;
        }
        public int getSoLuong()
        {
            return this.SoLuong;
        }
        public double getGiaTien()
        {
            return this.GiaTien;
        }
    }
}
